const explain = require("explain");
const uniID = require('uni-id')
const db = uniCloud.database()
const dbCmd = db.command
module.exports = class permission extends explain.service {

	//添加权限

	addPermission(params) {
	    let res = uniID.addPermission(params);
		return res
	}
	
	//获取权限列表
	getPermissionList(params) {
	    let res = uniID.getPermissionList(params);
		return res
	}
	
	//获取权限信息

	getPermissionInfo(params) {
	    let res = uniID.getPermissionInfo(params);
		return res
	}
	
	//更新权限信息
	updatePermission(params) {
	    let res = uniID.updatePermission(params);
		return res
	}
	
	//删除权限信息

	deletePermission(params) {
	    let res = uniID.deletePermission(params);
		return res
	}

}